<?php

declare(strict_types=1);

namespace App\Model\CommodityModel;

use App\Model\BaseModel\BaseCommodityModel;
class SupplierCommodity extends BaseCommodityModel
{
    public $table = 'suppliercommodity_s2b';

    public function getKeyAndBarCode($supplierId)
    {
        return $this->where('SupplierCompanyID',$supplierId)->select([
            'SupplierCommodityInternationBarCode',
            'SupplierCommodityKey',
            'SupplierCommoditySkuCode'
        ])->get()->toArray();
    }

}
